// @ts-ignore
/* eslint-disable */
import { OpenApi as request } from "@/utils/request";

/** 保存关于我们 POST /shop/config/aboutUs */
export async function aboutUsCreate(
  body: API.ShopConfigDto,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>(`/barter-user/shop/config/aboutUs`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 关于我们详情 GET /shop/config/aboutUs/detail */
export async function aboutUsDetail(options?: { [key: string]: any }) {
  return request<API.BaseResponseShopConfigDto>(
    `/barter-user/shop/config/aboutUs/detail`,
    {
      method: "GET",
      ...(options || {}),
    }
  );
}

/** 保存平台客服信息 POST /shop/config/platform/customer */
export async function wechatCustomerCreate(
  body: API.ShopWechatCustomerConfigDto,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>(
    `/barter-user/shop/config/platform/customer`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 平台客服详情 GET /shop/config/platform/customer/detail */
export async function wechatCustomerDetail(options?: { [key: string]: any }) {
  return request<API.BaseResponseShopWechatCustomerConfigDto>(
    `/barter-user/shop/config/platform/customer/detail`,
    {
      method: "GET",
      ...(options || {}),
    }
  );
}

/** 保存隐私政策 POST /shop/config/privacyPolicy */
export async function privacyPolicyCreate(
  body: API.ShopConfigDto,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>(
    `/barter-user/shop/config/privacyPolicy`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 隐私政策详情 GET /shop/config/privacyPolicy/detail */
export async function privacyPolicyDetail(options?: { [key: string]: any }) {
  return request<API.BaseResponseShopConfigDto>(
    `/barter-user/shop/config/privacyPolicy/detail`,
    {
      method: "GET",
      ...(options || {}),
    }
  );
}

/** 保存注册协议 POST /shop/config/userAgreement */
export async function userAgreementCreate(
  body: API.ShopConfigDto,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean>(
    `/barter-user/shop/config/userAgreement`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 注册协议详情 GET /shop/config/userAgreement/detail */
export async function userAgreementDetail(options?: { [key: string]: any }) {
  return request<API.BaseResponseShopConfigDto>(
    `/barter-user/shop/config/userAgreement/detail`,
    {
      method: "GET",
      ...(options || {}),
    }
  );
}
